﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using VVA.Data.Service;
using VVA.Website.UI.Helper;

namespace VVA.Website.UI.Controllers
{
    public class HomeController : BaseController
    {
        [OutputCache(Duration = 360, VaryByParam = "none")]
        public ActionResult Index()
        {
            var service = new ArticleService();
            var model = service.GetBySlug("gioi-thieu");
            if (model == null)
            {
                model = new VVA.Data.Entity.Article();
            }
            return View(model);
        }
    }
}
